#include <iostream>
#include<string>
using namespace std;
class A
{
public:
	string s;
	A(string s, char c, int i) :s(s), c(c), i(i) {}
	void show()
	{
		cout << "A::i=" << i << "  A::c=" << c << "  A::s=" << s << endl;
	}
protected:
	char c;
private:
	int i;
};
class B
{
public:
	string s;
	B(string s, char c, int i) :s(s), c(c), i(i) {}
	void show()
	{
		cout << "B::i=" << i << "  B::c=" << c << "  B::s=" << s << endl;
	}
protected:
	char c;
private:
	int i;
};
class C :public A, public B
{
public:
	C(int i1, char c1, string s1, int i2, char c2, string s2) :A(s1, c1, i1), B(s2, c2, i2) {}

};
int main() 
{
	C c(1, 'a', "as", 2, 'b', "bs");  
	//c.show();  
	c.A::show();  
	c.B::show();
}